package com.future.hair.server.custom.Vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.future.hair.server.entity.Mall;
import com.future.hair.server.entity.UserInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="WorksVo对象", description="")
public class WorksVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "user_info_id(用户信息id)")
    private Integer userInfoId;

    @ApiModelProperty(value = "作品类型id")
    private Integer categoryId;

    @ApiModelProperty(value = "images(字符;;拼接)")
    private String images;

    @ApiModelProperty(value = "content(文章)")
    private String content;

    @ApiModelProperty(value = "封面图片")
    private String cover;

    @ApiModelProperty(value = "点赞数")
    private Integer praiseCount;

    @ApiModelProperty(value = "评论数")
    private Integer commentCount;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "用户信息")
    private UserInfo userInfo;

    @ApiModelProperty(value = "门店信息")
    private Mall mall;

    @ApiModelProperty(value = "种类名")
    private String categoryName;

    @ApiModelProperty(value = "是否本人点赞")
    private Boolean isPraise;
}
